package net.huashitong.Project.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;

import net.huashitong.Project.entity.NodeFile;

@Repository
public class NodeFileDao extends StringDao<NodeFile> {
	
	public List<NodeFile> getFilesByNodeId(String nodeId){
		GenericQuery query = createQuery("obj");
		query.append(" and obj.nodeId =:nodeId").setParam("nodeId", nodeId);
		return query.listResult();
	}

}
